﻿package jokers.JAdv {
	import jokers.*;
	import jokers.JAdv.*;
	
	public class JChapter17 extends JChapter {
		//初始化章节
		public override function initChapter():void{
			JPara.timer_total = 181;
			JPara.crystalNum = 7;
					
			JTool.initToolBar();
			JTool.setToolEnable(JTool.TOOL_SEARCH);
			JTool.setToolEnable(JTool.TOOL_BOMB);
		}
		
		//特殊关卡会要求刷新特殊数据
		public override function run():void{
			
		}
		
		//是否胜利
		public override function isWin():Boolean{
                
				for(var i=0;i<JPara.num_tool.length;i++)
				{
					if(JPara.num_tool[i]==0)
					return false;
				}
			    return true;
		}
		
		//文字版提醒
		public override function showTips():String{
			var ret:String = "放大镜："+JPara.num_tool[0]+"/1\n";
			ret+="刷新："+JPara.num_tool[1]+"/1\n";
			ret+="炸弹："+JPara.num_tool[2]+"/1\n";
			ret+="闪电："+JPara.num_tool[3]+"/1\n";
			ret+="魔方："+JPara.num_tool[4]+"/1\n";
			ret+="月光："+JPara.num_tool[5]+"/1\n";
			ret+="时间："+JPara.num_tool[6]+"/1\n";
			ret+="油漆桶："+JPara.num_tool[7]+"/1\n";
			return ret;
		}
		
	}
}
